package com.zfzs.post.model.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @description: 修改结算卡信息
 * @author: ck
 * @create: 2019-09-06 16:15
 **/
@Data
public class UpdateSettleDTO {
    //银行卡号
    @NotBlank(message = "请输入银行卡号")
    private String bankNo;
    //身份证号码
    @NotBlank(message = "请输入身份证号")
    @Pattern(regexp = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$|^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9]|X)$"
        ,message = "请输入正确的身份证号"
    )
    private String cardNo;
    //银行卡名称
    @NotBlank(message = "请输入银行卡名称")
    private String bankName;
    //验证码
    @NotBlank(message = "请输入验证码")
    private String code;
    //验证码uuid
    private String uuid;

    @NotBlank(message = "请输入手机号码")
    private String phone;
}
